package cn.tedu.zuoye.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

@Getter
public enum StatusCode {


    APP_ERROR(2000, "业务异常"),
    FILE_SIZE_ERROR(2001, "文件最大上传20M"),
    PIC_NOTFOUND(4004,"图片不存在"),


    CONTENT_NOT_EXISTS(4001, "内容不存在"),
    FILE_FAIL(4002, "文件上传失败");

    @ApiModelProperty("状态码")
    private int code;

    @ApiModelProperty("操作失败时的描述文本")
    private String message;

    StatusCode(int code, String messagge) {
        this.code = code;
        this.message = messagge;
    }
}

